@charset "utf-8";
@import "common/reset";
@function p($px){
    @return $px/2*1px;
}
$blue:#241f47;
$yellow: #fade5d;
@mixin transf{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.goodsM{
    background: url(../img/bg.jpg);
}
.goodsImg{
    width: 100%;
    height: p(551);
    background: linear-gradient(to top, #727272,#c0c0c0,#fff p(40));
    border-bottom: 1px solid #727272;
    display: flex;
    justify-content: center;
    overflow: hidden;
    a{
        margin-top: p(25);
        display: inline-block;
        width: p(467);
        height: p(488);
        overflow: hidden;
        position: relative;
        img{
            width: 100%;
            @include transf;
        }
    }
}
.desc{
    width: 100%;
    background: #fff;
    .descP{
        width: 89.5%;
        margin: 0 auto;
        overflow: hidden;
         h2{
            font-size: p(30);
            color: #727272; 
            margin: p(30) 0 p(33);
            span{
                margin-right: p(32);
            }  
        }
        .descDetail{
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            p{
                font-size: p(26);
                color: #5c5c5c;
                line-height: p(28);
            }
            p:first-child{
                width: 70%;
                letter-spacing: 1px;
            }
            p:last-child{
                width: 16%;
                height: p(87);
                border-left: 1px solid #e5e5e5;
                text-align: center;
            }
        }
    }
    .price{
        width: 89.5%;
        margin: p(70) auto 0;
        overflow: hidden;
        .priceTitle{
            width: 100%;
            display: flex;
            justify-content: space-between;
            p:nth-of-type(1){
                font-size: p(28);
                color: #e30202;
                .num{
                    font-size: p(34);
                }
            }
            p.sales{
                font-size: p(20);
                color: #6b6b6b;
                span{
                    color: #228ac5;
                }
            }
        }
        .detail{
            margin-bottom: p(17);
            padding-bottom: p(10);
            border-bottom: 1px solid #e5e5e5;
            li{
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: p(24);
                color: #6b6b6b;
                margin-bottom: p(8);
                input,select{
                    flex: 1;
                    width: p(168);
                    height: p(48);
                    border: 1px solid #6b6b6b;
                    font-size: p(20);
                    color: #5c5c5c;
                    margin-left: p(39);
                    box-sizing: border-box;
                }
                input{padding-left: p(10);}
                button{
                    width: p(145);
                    height: p(60);
                    border-radius: p(6);
                    a{
                        color: #fff;
                    }
                }
                button.shopCart{
                    background: #38e859;
                }
                button.help{
                    background: #f6ac2b;
                }
                button.shop{
                    background: #f85c5c;
                }
                p{
                    display: flex;
                    align-items: center;
                    >span{
                        flex: 1;
                        display: inline-block;
                    }
                    >span:first-child{
                        width: p(152);
                    }
                    span.special{
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                    }
                } 
                
            }
        }
    }
}
.goodsPro{
    margin-top: p(19);
    position: relative;
    background: #fff;
    input{
        width: 0;
        height: 0;
        position: absolute;
    }
    input:checked~.topTitle label.active{
        background: #e7e7e7;
        border-bottom-color: #dbdbdb;
        color: #515151;
    }
    input:checked~ul.activeDesc{
        display: none;
    }
    #property:checked~ ul.proDesc,
    #imgText:checked~ ul.imgDesc,
    #evaluation:checked~ ul.evaDesc{
        display: block;
    }
    #property:checked~.topTitle label.property,
    #imgText:checked~.topTitle label.imgText,
    #evaluation:checked~.topTitle label.evaluation{
        background: #fff;
        border-bottom-color: transparent;
        color: #ff4b4b;
    }
    .topTitle{
        width: 100%;
        display: flex;
        border-top: 1px solid #d1d0d3;
        label{
            flex: 1;
            display: inline-block;
            width: p(212);
            height: p(73);
            background: #e7e7e7;
            font-size: p(26);
            color: #515151;
            line-height: p(73);
            text-align: center;
            border-bottom:  1px solid #dbdbdb;
            span{
                font-size: p(20);
            }
        }
        label:nth-of-type(2){
            border: 1px solid #c5c5c5;
            border-bottom-color: #dbdbdb ;
            border-top: 0;
        }
        label.active{
            background: #fff;
            border-bottom-color: transparent;
            color: #ff4b4b;
        }
    }
    .proDesc,.imgDesc,.evaDesc{
        display: none;
        padding: p(20) 0;
        li{
            font-size: p(26);
            color: #5c5c5c;
            margin-bottom: p(14);
            display: flex;
            span:first-child{
                text-align: right;
                flex: 2.1;
                margin-right: p(25);
            }
            span:last-child{
                flex: 7.9;
            }
        }
    }
    .activeDesc{
        display: block;
    }
}